<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>外卖平台启动页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
            max-width: 700px;
            width: 100%;
        }
        
        .logo {
            font-size: 4rem;
            margin-bottom: 20px;
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }
        
        .title {
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 15px;
            font-weight: 700;
        }
        
        .subtitle {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .btn {
            padding: 15px 25px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
        }
        
        .btn-secondary {
            background: linear-gradient(135deg, #4ecdc4, #45b7d1);
            color: white;
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
        }
        
        .btn-success {
            background: linear-gradient(135deg, #56ab2f, #a8e6cf);
            color: white;
            box-shadow: 0 4px 15px rgba(86, 171, 47, 0.3);
        }
        
        .btn-warning {
            background: linear-gradient(135deg, #f093fb, #f5576c);
            color: white;
            box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        }
        
        .status {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            text-align: left;
        }
        
        .status h3 {
            color: #333;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .status-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #eee;
        }
        
        .status-item:last-child {
            border-bottom: none;
        }
        
        .status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .status-indicator.success {
            background: #28a745;
        }
        
        .status-indicator.error {
            background: #dc3545;
        }
        
        .status-indicator.warning {
            background: #ffc107;
        }
        
        @media (max-width: 768px) {
            .buttons {
                grid-template-columns: 1fr;
            }
            .title {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="logo">🍽️</div>
        <h1 class="title">外卖平台启动页</h1>
        <p class="subtitle">
            欢迎使用外卖平台管理系统！<br>
            请选择您要执行的操作
        </p>
        
        <div class="buttons">
            <a href="index.html" class="btn btn-primary">
                🏠 返回首页
            </a>
            <a href="home.html" class="btn btn-secondary">
                🚀 进入系统
            </a>
            <a href="login.html" class="btn btn-success">
                🔐 登录/注册
            </a>
            <a href="reset-data.html" class="btn btn-warning">
                🔄 重置数据
            </a>
        </div>
        
        <div class="status">
            <h3>📊 系统状态检查</h3>
            <div class="status-item">
                <span>
                    <span class="status-indicator success"></span>
                    首页文件
                </span>
                <span>正常</span>
            </div>
            <div class="status-item">
                <span>
                    <span class="status-indicator success"></span>
                    登录系统
                </span>
                <span>正常</span>
            </div>
            <div class="status-item">
                <span>
                    <span class="status-indicator success"></span>
                    数据库
                </span>
                <span>正常</span>
            </div>
            <div class="status-item">
                <span>
                    <span class="status-indicator success"></span>
                    AI推荐
                </span>
                <span>正常</span>
            </div>
        </div>
    </div>
    
    <script>
        // 检查系统状态
        window.onload = function() {
            console.log('启动页加载完成');
            
            // 检查关键文件
            const checkFiles = async () => {
                const files = [
                    { name: '首页', url: 'index.html' },
                    { name: '主系统', url: 'home.html' },
                    { name: '登录页', url: 'login.html' },
                    { name: '数据库', url: 'database.js' },
                    { name: '用户端', url: 'user.html' },
                    { name: '商家端', url: 'merchant.html' },
                    { name: '骑手端', url: 'rider.html' }
                ];
                
                for (const file of files) {
                    try {
                        const response = await fetch(file.url);
                        if (response.ok) {
                            console.log(`✓ ${file.name} 文件存在`);
                        } else {
                            console.log(`✗ ${file.name} 文件不存在`);
                        }
                    } catch (error) {
                        console.log(`✗ ${file.name} 检查失败:`, error);
                    }
                }
            };
            
            checkFiles();
        };
    </script>
</body>
</html>